package com.xique.door.project.miniprogram.bean.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author shd
 * @create 2022/4/24 11:39
 */
@Data
public class MiniVisitorInviteRequest {

    @NotNull(message = "房屋id不能为空")
    private Long houseId;

    @NotBlank(message = "访问类型不能为空")
    private String visitorType;

    @NotNull(message = "访客类型不能为空")
    private String type;

    @NotNull(message = "来访开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @NotNull(message = "来访结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private Integer count;

    private Long userId;

    private Long parkId;

}
